package com.pzy.module.demo.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.OffsetDateTime;
import java.util.Map;
import java.util.UUID;

import com.fasterxml.jackson.databind.JsonNode;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

@Table("t_demo")
@Schema(description = "示例实体")
@Data
@Builder
public class DemoEntity implements Serializable {

    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    @Schema(description = "主键")
    private String id;

    @Column
    @Schema(description = "对应postgresql的 SMALLINT")
    private Short a;

    @Column
    @Schema(description = "对应postgresql的 INTEGER")
    private Integer b;

    @Column
    @Schema(description = "对应postgresql的 BIGINT")
    private Long c;

    @Column
    @Schema(description = "对应postgresql的 BIT")
    private Boolean d;

    @Column
    @Schema(description = "对应postgresql的 NUMERIC")
    private BigDecimal e;

    @Column
    @Schema(description = "对应postgresql的 REAL")
    private Float f;

    @Column
    @Schema(description = "对应postgresql的 DOUBLE")
    private Double g;

    @Column
    @Schema(description = "对应postgresql的 CHAR")
    private String h;

    @Column
    @Schema(description = "对应postgresql的 VARCHAR")
    private String i;

    @Column
    @Schema(description = "对应postgresql的 TEXT")
    private String j;

    @Column
    @Schema(description = "对应postgresql的 INET")
    private String k;

    @Column
    @Schema(description = "对应postgresql的 MACADDR")
    private String l;

    @Column
    @Schema(description = "对应postgresql的 JSON")
    private JsonNode m;

    @Column
    @Schema(description = "对应postgresql的 JSON")
    private JsonNode n;

    @Column
    @Schema(description = "对应postgresql的 UUID")
    private UUID o;

    @Column
    @Schema(description = "对应postgresql的 BYTEA")
    private byte[] p;

    @Column
    @Schema(description = "对应postgresql的 DATE")
    private LocalDate q;

    @Column
    @Schema(description = "对应postgresql的 TIME")
    private LocalTime r;

    @Column
    @Schema(description = "对应postgresql的 TIMESTAMP")
    private LocalDateTime s;

    @Column
    @Schema(description = "对应postgresql的 TIMESTAMPTZ")
    private OffsetDateTime t;
}
